using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using System.Threading.Tasks;
using System;
using System.IO;

public static class StreamingUtil
{ 
    public static string GetPathForStreamingAsset(string pathFromStreamingDir)
    {
        var path = $"{Application.streamingAssetsPath}/{pathFromStreamingDir}";
        return path;
    }

    public static async Task<T> LoadStreamingAssetsAsync<T>(string pathFromStreamingDir)
    {
        var path = $"{Application.streamingAssetsPath}/{pathFromStreamingDir}";
        return await FileUtil.ReadAsync<T>(path);
    }
}
